package com.company.test30.CharSoftware;

import java.io.DataOutputStream;
import java.io.IOException;

/**
 * Created by v on 16-12-6.
 */
public class SendMessage implements Runnable {
    private DataOutputStream output;
    private String message;
    public SendMessage(DataOutputStream output,String message){
        this.output=output;
        this.message=message;
    }

    @Override
    public void run() {
        try{
            output.writeUTF(message);
        }catch (IOException ex){
            ex.printStackTrace();
        }
    }
}
